package com.example.fw;

public class User {

	public String id;
	public String login;
	public String password;
	public String email;

	
	public void setId(String id) {
		this.id = id;
	}

	public User setLogin(String string) {
		this.login = string;
		return this;
	}

	public User setPassword(String string) {
		password = string;
		return this;
	}

	public User setEmail(String email) {
		this.email = email;
		return this;
	}

	public String getId() {
		return id;
	}

	public String getLogin() {
		return login;
	}

	public String getPassword() {
		return password;
	}

	public String getEmail() {
		return email;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", login=" + login + ", email=" + email + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((login == null) ? 0 : login.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		User other = (User) obj;
		if (login == null) {
			if (other.login != null)
				return false;
		} else if (!login.equals(other.login))
			return false;
		return true;
	}
	
	

}
